{extend name='admin@main'}

{block name="content"}
<div class="think-box-shadow">
    {include file='cleaner_auth/index_search'}
    <table class="layui-table margin-top-10" lay-skin="line">
        {notempty name='list'}
        <thead>
        <tr>
            <th class='text-left nowrap'>用户信息</th>
            <th class='text-left nowrap'>实名认证信息</th>
            <th class='text-left nowrap'></th>
            <th></th>
        </tr>
        </thead>
        {/notempty}
        <tbody>
        {foreach $list as $key=>$vo}
        <tr data-dbclick>
            <td class='text-left nowrap'>
                {notempty name='vo.cleaner.work_headimg'}
                <img data-tips-image style="width:40px;height:40px;vertical-align:top" src="{$vo.cleaner.work_headimg|default=''}" class="margin-right-5">
                {/notempty}
                <div class="inline-block">
                    会员姓名：{$vo.cleaner.name|default='--'}<br>
                    会员手机：{$vo.cleaner.phone|default='--'}<br>
                </div>
            </td>
            <td class='text-left nowrap'>
                {notempty name='vo.id_card_front'}
                <img data-tips-image style="width:40px;height:40px;vertical-align:top" src="{$vo.id_card_front|default=''}" class="margin-right-5">
                {/notempty}
                {notempty name='vo.id_card_other'}
                <img data-tips-image style="width:40px;height:40px;vertical-align:top" src="{$vo.id_card_other|default=''}" class="margin-right-5">
                {/notempty}
                {notempty name='vo.id_card_hold'}
                <img data-tips-image style="width:40px;height:40px;vertical-align:top" src="{$vo.id_card_hold|default=''}" class="margin-right-5">
                {/notempty}
                <div class="inline-block">
                    真实姓名：{$vo.real_name|default='--'}<br>
                    身份证号码：{$vo.id_card_number|default='--'}<br>
                </div>
            </td>
            <td class='text-left'>{$vo.create_at}</td>
            <td class="text-left">

                {if $vo.status eq 0 and auth("currency/cleaner_auth/resume")}
                <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('resume')}" data-value="cid#{$vo.cid};status#1" data-csrf="{:systoken('currency/cleaner_auth/resume')}">通 过</a>
                {/if}
                {if $vo.status eq 0 and auth("currency/cleaner_auth/forbid")}
                <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('forbid')}" data-value="cid#{$vo.cid};status#-1" data-csrf="{:systoken('currency/cleaner_auth/forbid')}">驳 回</a>
                {/if}
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
{/block}